package com.cds.alert.pojo;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 
 * <p>
 * <p>
 * 类描述：邮件发送接收记录表
 * <p>
 * 作     者： migrant
 * <p>
 * 日     期： 2014年3月10日
 * <p>
 * 时     间： 上午8:50:47
 * <p>
 */
public class AlertAlarmMail extends IdEntity {

	/**
	 * 已读邮件
	 */
	public static final Integer MAIL_READ = 1;
	/**
	 * 未读邮件
	 */
	public static final Integer MAIL_NOT_READ = 0;
	/**发送*/
	public static final Integer SEND_MAIL = 1;
	/**接收*/
	public static final Integer RECEIV_MAIL = 2;
	
	/** 阅读状态, 0: 未读; 1: 已读*/
	private Integer read;
	/**日志产生时间*/
	private Date logTime;
	/**IP地址*/
	private String ip;
	/**类型, 1: 发送; 2: 接收*/
	private Integer mode;
	/**发件人*/
	private String sender;
	/**收件人*/
	private String receiver;
	/**主题*/
	private String subject;
	/**邮件内容*/
	private String content;
	/**附件名称*/
	private String attachments;
	/**附件存储路径，分号分隔*/
	private String attachmentsStore;
	/**MAC地址*/
	private String mac;
	
	/**关联的用户名*/
	private String username;
	/**关联的机构名*/
	private String groupname;
	
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}
	
	public Integer getRead() {
		return read;
	}

	public void setRead(Integer read) {
		this.read = read;
	}

	public Date getLogTime() {
		return logTime;
	}

	public void setLogTime(Date logTime) {
		this.logTime = logTime;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Integer getMode() {
		return mode;
	}

	public void setMode(Integer mode) {
		this.mode = mode;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAttachments() {
		return attachments;
	}

	public void setAttachments(String attachments) {
		this.attachments = attachments;
	}

	public String getAttachmentsStore() {
		return attachmentsStore;
	}

	public void setAttachmentsStore(String attachmentsStore) {
		this.attachmentsStore = attachmentsStore;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getGroupname() {
		return groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
